package com.fruitsales.goods.pojo;

import java.util.Arrays;

public class goods {
    private Integer gid;

    private String gdesc;
    private String gname;
    private Integer gprice;
    
    private Integer gcount;

    private String gplace;

    private byte[] gpic;
    
    

    public goods() {
		super();
	}

	
	

	public goods(String gdesc, String gname, Integer gprice, Integer gcount, String gplace, byte[] gpic) {
		super();
		this.gdesc = gdesc;
		this.gname = gname;
		this.gprice = gprice;
		this.gcount = gcount;
		this.gplace = gplace;
		this.gpic = gpic;
	}




	public goods(Integer gid, String gdesc, String gname, Integer gprice, Integer gcount, String gplace, byte[] gpic) {
		super();
		this.gid = gid;
		this.gdesc = gdesc;
		this.gname = gname;
		this.gprice = gprice;
		this.gcount = gcount;
		this.gplace = gplace;
		this.gpic = gpic;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public Integer getGcount() {
		return gcount;
	}

	public void setGcount(Integer gcount) {
		this.gcount = gcount;
	}

	public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGdesc() {
        return gdesc;
    }

    public void setGdesc(String gdesc) {
        this.gdesc = gdesc == null ? null : gdesc.trim();
    }

    public Integer getGprice() {
        return gprice;
    }

    public void setGprice(Integer gprice) {
        this.gprice = gprice;
    }

    public String getGplace() {
        return gplace;
    }

    public void setGplace(String gplace) {
        this.gplace = gplace == null ? null : gplace.trim();
    }

    public byte[] getGpic() {
        return gpic;
    }

    public void setGpic(byte[] gpic) {
        this.gpic = gpic;
    }




	@Override
	public String toString() {
		return "goods [gid=" + gid + ", gdesc=" + gdesc + ", gname=" + gname + ", gprice=" + gprice + ", gcount="
				+ gcount + ", gplace=" + gplace + ", gpic=" + Arrays.toString(gpic) + "]";
	}




	
}